import "babel-polyfill";

export var MathError = class extends Error {
    name = "MathError";

    constructor(message) {
        super(message);
        this.message = message;
    }

    get [Symbol.toStringTag]() {
        return "MathError";
    }
};

export var ZeroDivisionError = class extends MathError {
    name = "ZeroDivisionError";

    constructor(message) {
        super(message);
        this.message = message;
    }

    get [Symbol.toStringTag]() {
        return "ZeroDivisionError";
    }
};
